package com.ruoyi.hr.service.impl.salaryadmin.salaryinfo;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.domain.Authority;
import com.ruoyi.hr.mapper.salaryadmin.salaryinfo.BtSalaryInfoMapper;
import com.ruoyi.hr.mapper.salaryadmin.salaryinfo.SalaryInfoAllEmpMapper;
import com.ruoyi.hr.service.salaryadmin.salaryinfo.BtSalaryInfoService;
import com.ruoyi.hr.service.salaryadmin.salaryinfo.SalaryInfoAllEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class BtSalaryInfoServiceImpl implements BtSalaryInfoService {

    @Autowired
    BtSalaryInfoMapper btSalaryInfoMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> findDataByPgid(Map map, List<Authority> authorities, int isAdmin) {
        return btSalaryInfoMapper.findDataByPgid(map, authorities, isAdmin);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> bankNumValidationList(Map map,List<Authority> authorities, int isAdmin) {
        return btSalaryInfoMapper.bankNumValidationList(map,authorities, isAdmin);
    }
}